package com.dc.ftp.test.Fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;
import com.dc.ftp.R;


public class ImageFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        Toast.makeText(getActivity(),"----绘制该Fragment的View组件时回调,会显示的View视图",Toast.LENGTH_LONG).show();
        ImageView img = new ImageView(getActivity());
        img.setImageResource(R.mipmap.ic_launcher);
        return img;
    }
}

